struct _GtkActionBarPrivate
{
- GtkWidget *center_box;
+ GtkWidget *box;
GtkWidget *revealer;
};
/* When constructing the widget, we want the revealer to be added
* as the first child of the bar, as an implementation detail.
* After that, the child added by the application should be added
- * to center_box.
+ * to box.
*/
- if (priv->center_box == NULL)
+ if (priv->box == NULL)
GTK_CONTAINER_CLASS (gtk_action_bar_parent_class)->add (container, child);
else
- gtk_container_add (GTK_CONTAINER (priv->center_box), child);
+ gtk_container_add (GTK_CONTAINER (priv->box), child);
}
static void
if (child == priv->revealer)
GTK_CONTAINER_CLASS (gtk_action_bar_parent_class)->remove (container, child);
else
- gtk_container_remove (GTK_CONTAINER (priv->center_box), child);
+ gtk_container_remove (GTK_CONTAINER (priv->box), child);
}
static void
if (include_internals)
(* callback) (priv->revealer, callback_data);
- if (priv->center_box)
- gtk_container_forall (GTK_CONTAINER (priv->center_box), callback, callback_data);
+ if (priv->box)
+ gtk_container_forall (GTK_CONTAINER (priv->box), callback, callback_data);
}
static void
if (child == priv->revealer)
g_param_value_set_default (pspec, value);
else
- gtk_container_child_get_property (GTK_CONTAINER (priv->center_box),
+ gtk_container_child_get_property (GTK_CONTAINER (priv->box),
child,
pspec->name,
value);
GtkActionBarPrivate *priv = gtk_action_bar_get_instance_private (GTK_ACTION_BAR (container));
if (child != priv->revealer)
- gtk_container_child_set_property (GTK_CONTAINER (priv->center_box),
+ gtk_container_child_set_property (GTK_CONTAINER (priv->box),
child,
pspec->name,
value);
if (child == priv->revealer)
return GTK_CONTAINER_CLASS (gtk_action_bar_parent_class)->get_path_for_child (container, child);
else
- return gtk_container_get_path_for_child (GTK_CONTAINER (priv->center_box), child);
+ return gtk_container_get_path_for_child (GTK_CONTAINER (priv->box), child);
}
static void
G_PARAM_READABLE));
gtk_widget_class_set_template_from_resource (widget_class, "/org/gtk/libgtk/ui/gtkactionbar.ui");
- gtk_widget_class_bind_template_child_internal_private (widget_class, GtkActionBar, center_box);
+ gtk_widget_class_bind_template_child_internal_private (widget_class, GtkActionBar, box);
gtk_widget_class_bind_template_child_internal_private (widget_class, GtkActionBar, revealer);
gtk_widget_class_set_accessible_role (widget_class, ATK_ROLE_PANEL);
GtkActionBarPrivate *priv = gtk_action_bar_get_instance_private (action_bar);
if (type && strcmp (type, "center") == 0)
- gtk_box_set_center_widget (GTK_BOX (priv->center_box), GTK_WIDGET (child));
+ gtk_box_set_center_widget (GTK_BOX (priv->box), GTK_WIDGET (child));
else if (!type)
gtk_container_add (GTK_CONTAINER (buildable), GTK_WIDGET (child));
else
{
GtkActionBarPrivate *priv = gtk_action_bar_get_instance_private (action_bar);
- gtk_box_pack_start (GTK_BOX (priv->center_box), child, FALSE, TRUE, 0);
+ gtk_box_pack_start (GTK_BOX (priv->box), child, FALSE, TRUE, 0);
}
/**
{
GtkActionBarPrivate *priv = gtk_action_bar_get_instance_private (action_bar);
- gtk_box_pack_end (GTK_BOX (priv->center_box), child, FALSE, TRUE, 0);
+ gtk_box_pack_end (GTK_BOX (priv->box), child, FALSE, TRUE, 0);
}
/**
{
GtkActionBarPrivate *priv = gtk_action_bar_get_instance_private (action_bar);
- gtk_box_set_center_widget (GTK_BOX (priv->center_box), center_widget);
+ gtk_box_set_center_widget (GTK_BOX (priv->box), center_widget);
}
/**
g_return_val_if_fail (GTK_IS_ACTION_BAR (action_bar), NULL);
- return gtk_box_get_center_widget (GTK_BOX (priv->center_box));
+ return gtk_box_get_center_widget (GTK_BOX (priv->box));
}
/**